var Series = (function(){
	var id;
	var label;
	var data;
	var isMain = false;
	var visible = true;
	var conf;

	return {
		init: function(seriesName, values){
			this.setId(seriesName);
			this.setData(values);
		},
		getId: function(){	return id; },
		setId: function(identifier){
			id = identifier;
			return;
		},
		getLabel: function(){ return label;	},
		setLabel: function(title){
			label = title;
			return;
		},
		getData: function(){ return data;},
		setData: function(dataset){
			data = dataset;
			return;
		},
		isMainSeries: function(){ return isMain;},
		setMainSeries: function(is_main){
			isMain = is_main;
			return;
		},
		isVisible: function(){ return visible;},
		setVisible: function(is_visible){
			visible = is_visible;
			return;
		},
		getConf: function(){ return conf;},
		setConf: function(seriesConf){
			conf = seriesConf;
			return;
		}	

	};
});
